import Vue from 'vue';
import Router from 'vue-router';

Vue.use(Router);
import login from '@/view/Login'
import home from '@/view/Home'
import user from '@/view/User'
import seatSelectionDetails from '@/view/SeatSelectionDetails'
import tips from '@/view/Tips'
import tipsDetails from "@/view/TipDetails";
import userDetails from "@/view/UserDetails";
const routes = [
    {
        path: '*',
        redirect: '/login'
    },
    {path: '/login', name :"login",component:login},
    {path: '/home',name :"home", component: home,
        meta: {
            keepAlive: true
        }
    },
    {path: '/user', name :"user",component: user},
    {path: '/seatSelectionDetails', name :"seatSelectionDetails",component: seatSelectionDetails},
    {path: '/tips', name :"tips",component: tips},
    {path: '/tipsDetails', name :"tipsDetails",component: tipsDetails},
    {path: '/userDetails', name :"userDetails",component: userDetails},
];
const router = new Router({
    mode:'history',
    routes
})

export default router
